package day12.exception_;

public class NumberFormatException_ {
    public static void main(String[] args) {
        String num = "123";
        int num1 = Integer.parseInt(num);
        System.out.println(num1);

        String name = "教育";
        //将String 转成 int
        int num2 = Integer.parseInt(name);//抛出NumberFormatException
    }
}
